﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Willow.Model;

namespace Willow.IService.Auth
{
    public interface IUserService : IService<Auth_User>
    {
        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="ids">The ids.</param>
        void BatchLogicalDelete(Guid[] ids);
        /// <summary>
        /// 登陆系统
        /// </summary>
        /// <param name="username">The username.</param>
        /// <param name="password">The password.</param>
        void Login(string username, string password);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="userId">The user identifier.</param>
        /// <param name="oldPassword">The old password.</param>
        /// <param name="newPassword">The new password.</param>
        void ChangePassword(Guid userId, string oldPassword, string newPassword);
    }
}
